﻿@model IEnumerable<BuildServer.Models.BuildTemplate>

@{
    ViewBag.Title = "Build Templates";
}

<h2 class="title"><img src="~/Images/BuildTemplate.png" />@ViewBag.Title</h2>

<table class="data-table">
    <tr>
        @Html.ColumnHeaderFor(model => model.Name)
        <th>Actions</th>
    </tr>

@foreach (var item in Html.Sort(Model)) {
    <tr class="data-row">
        <td>
            @Html.ActionLink(item.Name, "Edit", new { id=item.Id })
        </td>
        <td class="data-hover">
            <span>
                @Html.ActionLink("Copy", "Copy", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </span>
        </td>
    </tr>
}
</table>

<div>
    @Html.ActionLink("Create New", "Create")
</div>
